---
feature_name: Fetch API Response Handlers
chrome_version: 42
feature_id: 6730533392351232
---

<h3>Background</h3>
<p>
  This sample shows how the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a> returned by the Fetch API can be handled to
  deal with both successful and error responses.
</p>

{% include output_helper.html %}

{% include js_snippet.html filename='fetch-success-error-handlers-demo.js' %}
